package com.eidos.blogs.openapi.entity.seckill;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
* @author ： Eidos
* @date ：Created in 2021-01-12
* @description：领取红包过程表 实体类
* @modified By：
* @version: 1.0
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rede_receive_sync_records")
@ApiModel(value="RedeReceiveSyncRecords对象", description="领取红包同步表")
public class RedeReceiveSyncRecords extends Model<RedeReceiveSyncRecords> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "红包唯一ID")
    @TableField("red_envelope_id")
    private Long redEnvelopeId;

    @ApiModelProperty(value = "红包金额单位分")
    @TableField("rest_amount")
    private Long restAmount;

    @ApiModelProperty(value = "红包个数")
    @TableField("rest_num")
    private Integer restNum;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
